import { createRouter, createWebHistory } from "vue-router";

const routes = [
  { path: "/", redirect: "/login" },
  { path: "/index", redirect: "/index/home" },
  {
    title: '登录',
    name: "login",
    path: "/login",
    component: () => import("@/views/login/index.vue"),
  },
  {
    title: '任务列表',
    name: "taskList",
    path: "/taskList",
    component: () => import("@/views/taskList/index.vue"),
  },
  {
    title: '任务详情',
    name: "taskDetail",
    path: "/taskDetail",
    component: () => import("@/views/taskDetail/index.vue"),
  },
  {
    title: '操作页面',
    name: "operation",
    path: "/operation",
    component: () => import("@/views/operation/index.vue"),
  },

];

const router = createRouter({
  history: createWebHistory(),
  routes,
});


export default router;
